<?php
/**
 * +-------------------------------------------------------------
 * |Caption:
 * +-------------------------------------------------------------
 * |Author: Lenny
 * +-------------------------------------------------------------
 * |Email:  1685964109@qq.com
 * +-------------------------------------------------------------
 * |Date:   2024/6/21 下午8:20
 * +-------------------------------------------------------------
 */

namespace app\admin\validate;

use think\Validate;

class SysAuthValidate extends Validate
{
    protected $rule = [
            'title'  => 'require|max:20',
            'remark' => 'max:255',
    ];

    protected $message = [
            'title.require'  => '请输入权限名称',
            'title.max'      => '权限名称最多不能超过20个字符',
    ];

    protected $scene = [
            'add' => ['title', 'remark'],
    ];
}